package com.cj.mobile.iabp.mvp.model.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 白名单-冶炼厂信息
 */
public class SmelterInfo implements Parcelable {
    public SmelterInfo(String smId, String smName, String legalPersonName, String legalPersonPhone, String legalPersonIdCard, String creditCode, String province, String city, String area, String businessLicense, String businessLicenseScale, String companyPhoto, String companyPhotoScale, String idCardPhoto, String idCardPhotoScale) {
        this.smelterId = smId;
        this.smelterName = smName;
        this.legalPersonName = legalPersonName;
        this.legalPersonPhone = legalPersonPhone;
        this.legalPersonIdCard = legalPersonIdCard;
        this.businessLicenseCode = creditCode;
        this.province = province;
        this.city = city;
        this.area = area;
        this.businessLicense = businessLicense;
        this.businessLicenseScale = businessLicenseScale;
        this.companyPhoto = companyPhoto;
        this.companyPhotoScale = companyPhotoScale;
        this.idCardPhoto = idCardPhoto;
        this.idCardPhotoScale = idCardPhotoScale;
    }

    public SmelterInfo(String smId, String smName, String legalPersonName, String legalPersonPhone, String legalPersonIdCard, String creditCode, String province, String city, String area, String businessLicense, String businessLicenseScale, String companyPhoto, String companyPhotoScale, String idCardPhoto, String idCardPhotoScale, String rsStatusName) {
        this.smelterId = smId;
        this.smelterName = smName;
        this.legalPersonName = legalPersonName;
        this.legalPersonPhone = legalPersonPhone;
        this.legalPersonIdCard = legalPersonIdCard;
        this.businessLicenseCode = creditCode;
        this.province = province;
        this.city = city;
        this.area = area;
        this.businessLicense = businessLicense;
        this.businessLicenseScale = businessLicenseScale;
        this.companyPhoto = companyPhoto;
        this.companyPhotoScale = companyPhotoScale;
        this.idCardPhoto = idCardPhoto;
        this.idCardPhotoScale = idCardPhotoScale;
        this.rsStatusName = rsStatusName;
    }

    public SmelterInfo() {
    }

    /*--------------------------------------------------------白名单--------------------------------------------------------*/
    // 白名单id
    private String rsId;
    // 冶炼厂id
    private String smelterId;
    // 冶炼厂名称
    private String smelterName;
    // 白名单状态id：0待申请、1待审核、2审核中、3已退回、4使用中、8已停用、9已删除。
    private int rsStatusId;
    // 白名单状态
    private String rsStatusName;
    // 社会信用代码
    private String businessLicenseCode;
    // 法人姓名
    private String legalPersonName;
    // 法人手机号
    private String legalPersonPhone;
    // 法人身份证号
    private String legalPersonIdCard;

    /*--------------------------------------------------------可关联--------------------------------------------------------*/

    // 省份
    private String province;
    // 城市
    private String city;
    // 区域
    private String area;
    private String areaId;
    // 营业执照
    private String businessLicense;
    private String businessLicenseScale;
    // 公司门头照
    private String companyPhoto;
    private String companyPhotoScale;
    // 身份证照片
    private String idCardPhoto;
    private String idCardPhotoScale;
    // 处置协议-图片
    private List<AgreementInfo> agreementImgList;
    // 处置协议-文件
    private List<AgreementInfo> agreementList;

    public String getRsId() {
        return rsId;
    }

    public void setRsId(String rsId) {
        this.rsId = rsId;
    }

    public String getSmelterId() {
        return smelterId;
    }

    public void setSmelterId(String smelterId) {
        this.smelterId = smelterId;
    }

    public String getSmelterName() {
        return smelterName;
    }

    public void setSmelterName(String smelterName) {
        this.smelterName = smelterName;
    }

    public int getRsStatusId() {
        return rsStatusId;
    }

    public void setRsStatusId(int rsStatusId) {
        this.rsStatusId = rsStatusId;
    }

    public String getRsStatusName() {
        return rsStatusName;
    }

    public void setRsStatusName(String rsStatusName) {
        this.rsStatusName = rsStatusName;
    }

    public String getBusinessLicenseCode() {
        return businessLicenseCode;
    }

    public void setBusinessLicenseCode(String businessLicenseCode) {
        this.businessLicenseCode = businessLicenseCode;
    }

    public String getLegalPersonName() {
        return legalPersonName;
    }

    public void setLegalPersonName(String legalPersonName) {
        this.legalPersonName = legalPersonName;
    }

    public String getLegalPersonPhone() {
        return legalPersonPhone;
    }

    public void setLegalPersonPhone(String legalPersonPhone) {
        this.legalPersonPhone = legalPersonPhone;
    }

    public String getLegalPersonIdCard() {
        return legalPersonIdCard;
    }

    public void setLegalPersonIdCard(String legalPersonIdCard) {
        this.legalPersonIdCard = legalPersonIdCard;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getBusinessLicense() {
        return businessLicense;
    }

    public void setBusinessLicense(String businessLicense) {
        this.businessLicense = businessLicense;
    }

    public String getBusinessLicenseScale() {
        return businessLicenseScale;
    }

    public void setBusinessLicenseScale(String businessLicenseScale) {
        this.businessLicenseScale = businessLicenseScale;
    }

    public String getCompanyPhoto() {
        return companyPhoto;
    }

    public void setCompanyPhoto(String companyPhoto) {
        this.companyPhoto = companyPhoto;
    }

    public String getCompanyPhotoScale() {
        return companyPhotoScale;
    }

    public void setCompanyPhotoScale(String companyPhotoScale) {
        this.companyPhotoScale = companyPhotoScale;
    }

    public String getIdCardPhoto() {
        return idCardPhoto;
    }

    public void setIdCardPhoto(String idCardPhoto) {
        this.idCardPhoto = idCardPhoto;
    }

    public String getIdCardPhotoScale() {
        return idCardPhotoScale;
    }

    public void setIdCardPhotoScale(String idCardPhotoScale) {
        this.idCardPhotoScale = idCardPhotoScale;
    }

    public List<AgreementInfo> getAgreementImgList() {
        return agreementImgList;
    }

    public void setAgreementImgList(List<AgreementInfo> agreementImgList) {
        this.agreementImgList = agreementImgList;
    }

    public List<AgreementInfo> getAgreementList() {
        return agreementList;
    }

    public void setAgreementList(List<AgreementInfo> agreementList) {
        this.agreementList = agreementList;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.rsId);
        dest.writeString(this.smelterId);
        dest.writeString(this.smelterName);
        dest.writeInt(this.rsStatusId);
        dest.writeString(this.rsStatusName);
        dest.writeString(this.businessLicenseCode);
        dest.writeString(this.legalPersonName);
        dest.writeString(this.legalPersonPhone);
        dest.writeString(this.legalPersonIdCard);
        dest.writeString(this.province);
        dest.writeString(this.city);
        dest.writeString(this.area);
        dest.writeString(this.areaId);
        dest.writeString(this.businessLicense);
        dest.writeString(this.businessLicenseScale);
        dest.writeString(this.companyPhoto);
        dest.writeString(this.companyPhotoScale);
        dest.writeString(this.idCardPhoto);
        dest.writeString(this.idCardPhotoScale);
        dest.writeTypedList(this.agreementImgList);
        dest.writeTypedList(this.agreementList);
    }

    protected SmelterInfo(Parcel in) {
        this.rsId = in.readString();
        this.smelterId = in.readString();
        this.smelterName = in.readString();
        this.rsStatusId = in.readInt();
        this.rsStatusName = in.readString();
        this.businessLicenseCode = in.readString();
        this.legalPersonName = in.readString();
        this.legalPersonPhone = in.readString();
        this.legalPersonIdCard = in.readString();
        this.province = in.readString();
        this.city = in.readString();
        this.area = in.readString();
        this.areaId = in.readString();
        this.businessLicense = in.readString();
        this.businessLicenseScale = in.readString();
        this.companyPhoto = in.readString();
        this.companyPhotoScale = in.readString();
        this.idCardPhoto = in.readString();
        this.idCardPhotoScale = in.readString();
        this.agreementImgList = in.createTypedArrayList(AgreementInfo.CREATOR);
        this.agreementList = in.createTypedArrayList(AgreementInfo.CREATOR);
    }

    public static final Creator<SmelterInfo> CREATOR = new Creator<SmelterInfo>() {
        @Override
        public SmelterInfo createFromParcel(Parcel source) {
            return new SmelterInfo(source);
        }

        @Override
        public SmelterInfo[] newArray(int size) {
            return new SmelterInfo[size];
        }
    };
}
